# $Id: PKGBUILD 76222 2012-09-14 10:05:17Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+aur@gmail.com>

pkgname=perl-email-mime
pkgver=1.911
pkgrel=1
pkgdesc="Easy MIME message parsing"
arch=('any')
url="http://search.cpan.org/dist/Email-MIME"
license=('GPL' 'PerlArtistic')
depends=('perl-email-mime-encodings>=1.3' 'perl-mime-types>=1.13'
	 'perl-email-simple>=2.003' 'perl-email-mime-contenttype>=1.011'
	 'perl-email-messageid')
provides=("perl-email-mime-creator=$pkgver" "perl-email-mime-modifier=$pkgver")
replaces=("perl-email-mime-creator" "perl-email-mime-modifier")
options=('!emptydirs')
source=(http://www.cpan.org/authors/id/R/RJ/RJBS/Email-MIME-$pkgver.tar.gz)
md5sums=('82323a45ba1a3beec649f969f408c078')

build() {
  cd  $srcdir/Email-MIME-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package(){
  cd  $srcdir/Email-MIME-$pkgver
  make install DESTDIR=$pkgdir
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}
